package com.isdepci.project.result.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.result.mapper.ProductEmissionsMapper;
import com.isdepci.project.result.domain.ProductEmissions;
import com.isdepci.project.result.service.IProductEmissionsService;

/**
 * 按产品划分的排放Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-05
 */
@Service
public class ProductEmissionsServiceImpl implements IProductEmissionsService
{
    @Autowired
    private ProductEmissionsMapper productEmissionsMapper;

    /**
     * 查询按产品划分的排放
     */
    @Override
    public ProductEmissions selectProductEmissionsById(Long id)
    {
        return productEmissionsMapper.selectProductEmissionsById(id);
    }

    /**
     * 查询按产品划分的排放列表
     */
    @Override
    public List<ProductEmissions> selectProductEmissionsList(ProductEmissions productEmissions)
    {
        return productEmissionsMapper.selectProductEmissionsList(productEmissions);
    }

    /**
     * 新增按产品划分的排放
     */
    @Override
    public int insertProductEmissions(ProductEmissions productEmissions)
    {
        return productEmissionsMapper.insertProductEmissions(productEmissions);
    }

    /**
     * 修改按产品划分的排放
     */
    @Override
    public int updateProductEmissions(ProductEmissions productEmissions)
    {
        return productEmissionsMapper.updateProductEmissions(productEmissions);
    }

    /**
     * 批量删除按产品划分的排放
     */
    @Override
    public int deleteProductEmissionsByIds(Long[] ids)
    {
        return productEmissionsMapper.deleteProductEmissionsByIds(ids);
    }

    /**
     * 删除按产品划分的排放信息
     */
    @Override
    public int deleteProductEmissionsById(Long id)
    {
        return productEmissionsMapper.deleteProductEmissionsById(id);
    }
}
